﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="msBsc.WebUi.wfCheckUserAccount"
    CodeBehind="wfCheckUserAccount.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户账户确认</title>
    <style type="text/css">
        html, body {
            overflow: hidden;
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
        }
    </style>
    <script type="text/javascript">
        $(window).load(function () {
            //            $.ploadFile("Grid", function (script, textStatus) {
            initGrid1();
            //            });
            //            $.ploadFile("layer", function (script, textStatus) {
            ////                layer.load('加载中'); 
            //            });
        });
        function initGrid1() {
            var colsOption = [
            { id: 'chk', isCheckColumn: true, filterable: false, exportable: false },
            { id: 'CUSTOMER_BASEINFO_ID', hidden: true, filterable: false, exportable: false },
            { id: 'CUSTOMER_NICK', header: "用户昵称", width: 200 },
            { id: 'CUSTOMER_ALIPAY_ACCOUNT', header: "支付宝账号", width: 200 },
            { id: 'ISPASS', header: "是否已认证", width: 100 },
            { id: 'ACCOUNT_STATUS', header: "账号状态", width: 100 },
            { id: 'CREFY_BALANCE', header: "认证金额", width: 100 },
            { id: 'SYS_FOR_CREFY_DT', header: "打款日期", width: 100 },
            { id: 'CUSTOMER_CREFY_DT', header: "用户认证时间", width: 100 },
            { id: 'CUSTOMER_CREFY_LAST_DT', header: "用户最后认证时间", width: 100 },
            { id: 'DENY_REASON', header: "未验证原因", width: 200, editor: { type: 'text' } }
            ];
            var gridOption1 = getGtOp('myGrid1', colsOption, 'gridbox1', 'CUSTOMER_BASEINFO_ID');
            //            gridOption1.height = "500px"; 
            if ($("#txtRelId").val() == null || $("#txtRelId").val() == '') {
                gridOption1.autoLoad = false;
            } else {
                gridOption1.autoLoad = true;
            }
            //            gridOption1.autogtResize = false;
            var myGrid1 = new Sigma.Grid(gridOption1);
            myGrid1.render();
            myGrid1.readOnly = true;
            //            btnDo("btnEdit");
            autogtResize("bigbox2", myGrid1);
        };

        function btnDo(sEbtn) {
            GtGrid1Action = sEbtn;
            var opart = GetGtParam("myGrid1");
            if (sEbtn == "mFinder") {
                doFinderGt('myGrid1');
            }
            else if (sEbtn == "btnSave") {
                doSaveGt('myGrid1');
            }
            else if (sEbtn == "btnConfirmArrive" || sEbtn == "btnCancel") {
                var sidtem1 = GetGtSelectId('myGrid1');
                if (sidtem1) {
                    opart.AddCell("CHECK_ID", sidtem1);
                    ajaxComm(opart, null, null, 'divCondition'); //调用页面回调，并传入参数
                } else {
                    alert("请先选择记录！");
                }
            }
            else {
                ajaxComm(opart); //调用页面回调，并传入参数
            }
            GtGrid1Action = "";
        };
        function GetGtParam(jqGridID) {
            var _jsParam = new jsonRow();
            if (jqGridID == "myGrid1") {
                GetFormJson("divCondition", _jsParam);
                _jsParam.AddCell("gtGridID", "myGrid1");
                _jsParam.AddCell("REL_ID", $("#txtRelId").val());
                _jsParam.AddCell("ACTION", GtGrid1Action);
                //这里可增加传入后台的参数
            } return _jsParam;
        };
        $(window).load(function () {
            $('#txtINITIAL_DT_S').date_input('%Y-%m-%d');
            $('#txtINITIAL_DT_E').date_input('%Y-%m-%d');
        });
    </script>
</head>
<body>
    <form id="wfBseDataSyn" method="post" runat="server">

        <div id="fragment1">
            <div id="divCondition" style="margin: 3px; border-style: solid; border-width: 1px; border-color: #C8D2E0; background-color: #eee; padding: 3px;">
                <table border="0" cellpadding="0" cellspacing="0">
                    <%--<tr>
                        <td class="label" width="100px">
                            交易单号
                        </td>
                        <td align="right" style="width: 130px">
                            <asp:TextBox ID="txtTRADING_NO" runat="server" Width="130px"></asp:TextBox>
                        </td>
                        <td class="label" width="100px" align="right">
                            &nbsp;帐号代码</td>
                        <td class="label" width="130px" align="right">
                            <asp:TextBox ID="txtACCOUNT_NO" runat="server" Width="130px"></asp:TextBox>
                        </td>
                        <td class="label" width="100px" align="right">
                            账单日期</td>
                        <td class="label" width="130px" align="right">
                            <asp:TextBox ID="txtINITIAL_DT_S" runat="server" Width="130px"></asp:TextBox>
                        </td> 
                        <td class="label" width="20px" align="right">
                            至</td>
                        <td class="label" width="130px" align="right">
                            <asp:TextBox ID="txtINITIAL_DT_E" runat="server" Width="130px"></asp:TextBox>
                        </td> 
                        <td align="center" style=" padding-left:20px;">
                           
                       </td>
                    </tr>--%>
                    <tr>
                        <td class="label" width="100px">账户类型</td>
                        <td align="right" style="width: 130px">
                            <select id="dplTRADING_TYPE_CID" name="dplTRADING_TYPE_CID"
                                style="width: 130px;">
                                <option value="1">待认证</option>
                                <option value="2">已打款</option>
                                <option value="3">已认证</option>
                                <option value="4">未通过</option>
                                <option value="-1">已解绑</option>
                                <option value="0">全部</option>
                            </select></td>
                        <td class="label" width="100px" align="right">用户类型</td>
                        <td class="label" width="130px" align="right">
                            <select id="dplTRADING_SID" name="dplTRADING_SID" style="width: 130px;">
                                <option value="2">地接客</option>
                                <option value="1">游客</option>
                                <option value="0">全部</option>
                            </select></td>

                        <%--<td class="label" width="100px" align="right">
                            资金来源</td>
                        <td class="label" width="130px" align="right">
                            <select id="dplCHARGE_SRC_CID" name="dplCHARGE_SRC_CID" style="width: 130px;">
                                <option value="" selected="selected"></option>
                                <option value="商城帐户" >商城帐户</option>
                                <option value="在线支付">在线支付</option> 
                            </select>
                            </td> --%>
                        <td colspan="3" align="center" style="padding-left: 20px;">

                            <input class="btn btn-mini btn-danger" id="btnFinder" type="button" onclick="javascript: btnDo('mFinder'); return false;" value="查询" />
                            <input class="btn btn-mini btn-danger" id="btnConfirmArrive" type="button" onclick="javascript: if (confirm('确定要对选择的记录执行【已打款确认】操作吗？')) { btnDo('btnConfirmArrive'); } return false;" value="确认已打款" />
                        </td>
                    </tr>
                </table>
            </div>
            <div id="div1" style="margin: 0px; border-style: solid; border-width: 1px; border-color: #C8D2E0;">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="center">
                                    <input type="button" onclick="javascript: btnDo('btnEdit'); return false;" value="编辑(E)"
                                        id="btnEdit" accesskey="E" />
                                    <input type="button" onclick="javascript: btnDo('btnSave'); return false;" value="保存(S)"
                                        id="btnSave" accesskey="S" />
                                    <input type="button" onclick="javascript: btnDo('btnNotSave'); return false;" value="取消(Z)"
                                        id="btnNotSave" accesskey="Z" />
                                </td>
                            </tr>
                        </table>
                    </div>
            <div id="bigbox1" style="margin: 0px; margin-top: 2px;">
                <div id="gridbox1" style="border: 0px solid #cccccc; background-color: #f3f3f3; padding: 5px; margin-left: -1px;">
                </div>
            </div>
        </div>
        <input value="" type="hidden" id="txtRelId" runat="server" name="txtRelId" />
    </form>
</body>
</html>
